package com.sky.service.user.impl;


import com.sky.mapper.user.CategoryMapper;
import com.sky.pojo.Category;
import com.sky.service.user.CategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userCategoryService")
@Slf4j
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;


    @Override
    public List<Category> list() {
        return categoryMapper.select();
    }
}
